<template>
    <div class="content">
        <!-- 行业资讯 -->
        <h3>行业资讯</h3>
        <div class="project">
            <div class="project_item" @click="goDetail(item.key)" v-for="(item, index) in data
            ">
                <div class="project_title">{{ item.title }} 
                    <!-- <span v-if="item.severName">: {{ item.severName }}</span> -->
                </div>
                <div class="myBox">
                    {{ item.information }}
                </div>
            </div>
        </div>
    </div>
</template>

<script>
import { list } from './IndustryInformationData'
export default {
    data() {
        return {
            data: []
        };
    },
    created() {
        this.data = JSON.parse(JSON.stringify(list))
    },
    components: {},
    watch: {},
    methods: {
        goDetail(key) {
            this.$router.push('/industryInformation_detail?key=' + key)
        }
    },
    computed: {},
}
</script>

<style scoped>
.content {
    min-height: calc(100vh - 260px);
}

h3 {
    font-weight: bold;
    font-size: 32px;
    margin: 50px 0;
    text-align: center;
}

.project {
    width: 100%;
    padding: 0 10%;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* height: 800px; */
}

.project_item {
    width: 48%;
    height: 210px;
    border: 30px solid #fafafa;
    padding: 15px;
    box-sizing: border-box;
    background-color: #ffffff;
    margin-bottom: 30px;
    overflow: hidden;
}

.myBox{
    padding-bottom: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}
.project_item:hover {
    transform: scale(1.1);
    box-shadow: 10px 10px 10px rgba(54, 85, 165, .3);
    transition: all .5s;
    cursor: pointer;
}

.project_title {
    font-size: 18px;
    color: rgb(54, 85, 165);
    margin-bottom: 10px;
    font-weight: 500;
}
</style>